home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wsc4c21.zip / WSC.H < prev    next >
C/C++ Source or Header  |  1997-05-22  |  3KB  |  206 lines

  1. /*
  2. **  wsc.h
  3. **
  4. **  Use for both Win16 & Win32.
  5. */
  6.  
  7. #ifdef WIN32
  8.   #ifdef _MSC_VER
  9.      #define DLLEXPORT __stdcall
  10.   #else
  11.      #define DLLEXPORT __stdcall _export
  12.   #endif
  13. #else
  14.   #define DLLEXPORT FAR PASCAL
  15. #endif
  16.  
  17. #ifdef __cplusplus
  18.   #define NoMangle extern "C"
  19. #else
  20.   #define NoMangle
  21. #endif
  22.  
  23. NoMangle int DLLEXPORT SioBaud(int,unsigned);
  24. NoMangle int DLLEXPORT SioBrkSig(int,char);
  25. NoMangle int DLLEXPORT SioCTS(int);
  26. NoMangle int DLLEXPORT SioDCD(int);
  27. NoMangle int DLLEXPORT SioDebug(int);
  28. NoMangle int DLLEXPORT SioDone(int);
  29. NoMangle int DLLEXPORT SioDSR(int);
  30. NoMangle int DLLEXPORT SioDTR(int,char);
  31. NoMangle int DLLEXPORT SioFlow(int,char);
  32. NoMangle int DLLEXPORT SioInfo(char);
  33. NoMangle int DLLEXPORT SioGetc(int);
  34. NoMangle int DLLEXPORT SioGets(int,LPSTR,unsigned);
  35. NoMangle int DLLEXPORT SioParms(int,int,int,int);
  36. NoMangle int DLLEXPORT SioPutc(int,char);
  37. NoMangle int DLLEXPORT SioPuts(int,LPSTR,unsigned);
  38. NoMangle int DLLEXPORT SioRead(int,int);
  39. NoMangle int DLLEXPORT SioReset(int,int,int);
  40. NoMangle int DLLEXPORT SioRI(int);
  41. NoMangle int DLLEXPORT SioRTS(int,char);
  42. NoMangle int DLLEXPORT SioRxClear(int);
  43. NoMangle int DLLEXPORT SioRxQue(int);
  44. NoMangle int DLLEXPORT SioStatus(int,unsigned);
  45. NoMangle int DLLEXPORT SioTxClear(int);
  46. NoMangle int DLLEXPORT SioTxQue(int);
  47. NoMangle int DLLEXPORT SioUnGetc(int,char);
  48. NoMangle int DLLEXPORT SioWinError(void);
  49.  
  50. #define COM1   0
  51. #define COM2   1
  52. #define COM3   2
  53. #define COM4   3
  54. #define COM5   4
  55. #define COM6   5
  56. #define COM7   6
  57. #define COM8   7
  58. #define COM9   8
  59.  
  60. /* Parity Codes */
  61.  
  62. #define NoParity 0
  63. #define OddParity  1
  64. #define EvenParity 2
  65. #define MarkParity 3
  66. #define SpaceParity 4
  67.  
  68. /* Stop Bit Codes */
  69.  
  70. #define OneStopBit  0
  71. #define TwoStopBits 2
  72.  
  73. /* Word Length Codes */
  74.  
  75. #define WordLength5  5
  76. #define WordLength6  6
  77. #define WordLength7  7
  78. #define WordLength8  8
  79.  
  80. /* return codes */
  81.  
  82. #define WSC_NO_DATA   (-100)
  83. #define WSC_RANGE     (-101)
  84. #define WSC_ABORTED   (-102)
  85. #define WSC_WIN32ERR  (-103)
  86. #define WSC_EXPIRED   (-104)
  87. #define IE_BADID      (-1)
  88. #define IE_OPEN       (-2)
  89. #define IE_NOPEN      (-3)
  90. #define IE_MEMORY     (-4)
  91. #define IE_DEFAULT    (-5)
  92. #define IE_HARDWARE   (-10)
  93. #define IE_BYTESIZE   (-11)
  94. #define IE_BAUDRATE   (-12)
  95.  
  96. /* baud codes */
  97.  
  98. #define Baud110    0
  99. #define Baud300    1
  100. #define Baud1200   2
  101. #define Baud2400   3
  102. #define Baud4800   4
  103. #define Baud9600   5
  104. #define Baud19200  6
  105. #define Baud38400  7
  106. #define Baud57600  8
  107. #define Baud115200 9
  108.  
  109. /* SioGetError masks */
  110.  
  111. #define WSC_RXOVER   0x0001
  112. #define WSC_OVERRUN  0x0002
  113. #define WSC_PARITY   0x0004
  114. #define WSC_FRAME    0x0008
  115. #define WSC_BREAK    0x0010
  116. #define WSC_TXFULL   0x0100
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.   
  206.